﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using IBDM2IBSInterface;
using Models;

namespace TimeTableCreatorOO
{
    public class CreatorManager
    {
        public CreatorManager(DataTable timeTableDetail, IStation beginStation)
        {
            IList<IList<string>> rowContent = GetRowContent(timeTableDetail);

            foreach (IList<string> rowInfo in rowContent)
            {
                if (!string.IsNullOrEmpty(rowInfo[0]))
                {
                    TokenModel tokenModel = new TokenModel(rowInfo[0]);

                    RowCleaner rowCleaner = new RowCleaner(rowInfo, tokenModel, beginStation);
                }

            }

        }


        private IList<IList<string>> GetRowContent(DataTable timeTableDetail)
        {
            throw new NotImplementedException();
        }


        private TimeTableModel _timeTable;
        private IList<RowCleaner> _rowCleaners = new List<RowCleaner>();

        public TimeTableModel TimeTable
        {
            get { return _timeTable; }
            set { _timeTable = value; }
        }

        public void Start()
        {
            for (int i = 0; i < _rowCleaners.Count; i++)
            {
                
            }
        }
    }
}
